package com.zhuiyi.homeworkstudent.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
//ONLY all args constructor
@AllArgsConstructor
@NoArgsConstructor
public class Student {
    private Integer id;
    private String userName;
    private String userAccount;
    private String avatarUrl;
    private Integer gender;
    private String userPassword;
    private String phone;
    private String email;
    private Integer userStatus;
    private Date createTime;
    private Date updateTime;
    private Integer isDelete;
    private Integer userRole;

    public Student(int id, String userName, String userAccount) {
        this.id = id;
        this.userName = userName;
        this.userAccount = userAccount;
    }
    public Student(int id, String userName, String userAccount,String  userPassword) {
        this.id = id;
        this.userName = userName;
        this.userAccount = userAccount;
        this.userPassword = userPassword;
    }
}
